import request from '@/utils/request'

// 查询参数详情列表
export function listParameterDetails(query) {
  return request({
    url: '/substation/parameterDetails/list',
    method: 'get',
    params: query
  })
}

// 查询参数历史版本值
export function getHistory(query) {
  return request({
    url: '/substation/parameterDetails/getHistory',
    method: 'get',
    params: query
  })
}

// 获取参数包含备注详情列表
export function includeRemarksList(query) {
  return request({
    url: '/substation/parameterDetails/includeRemarksList',
    method: 'get',
    params: query
  })
}

// 查询参数详情详细
export function getParameterDetails(id) {
  return request({
    url: '/substation/parameterDetails/' + id,
    method: 'get'
  })
}

// 新增参数详情
export function addParameterDetails(data) {
  return request({
    url: '/substation/parameterDetails',
    method: 'post',
    data: data
  })
}

// 修改参数详情
export function updateParameterDetails(data) {
  return request({
    url: '/substation/parameterDetails',
    method: 'put',
    data: data
  })
}

// 删除参数详情
export function delParameterDetails(id) {
  return request({
    url: '/substation/parameterDetails/' + id,
    method: 'delete'
  })
}
